-- GENERATED SPELL FOR [Knight Commander Plaguefist] --


function spell0_29053(pUnit, Event) --@Blood Strike,n/a--
pUnit:FullCastSpellOnTarget(52374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29053', 646, 1)
end

function spell1_29053(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(52372,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29053', 20000, 1)
end

function spell2_29053(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(52373,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29053', 12000, 1)
end

function Sorts_29053(pUnit, Event)
local choix_sorts_29053 = math.random(0, 2)
if choix_sorts_29053 == 0 then
pUnit:RegisterEvent('spell0_29053', 1, 1)
end
if choix_sorts_29053 == 1 then
pUnit:RegisterEvent('spell1_29053', 1, 1)
end
if choix_sorts_29053 == 2 then
pUnit:RegisterEvent('spell2_29053', 1, 1)
end
end

function mob29053_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29053', math.random(1500, 3000), 1)
end

function mob29053_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29053_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29053_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29053, 1, 'mob29053_Action')
RegisterUnitEvent(29053, 2, 'mob29053_Leave')
RegisterUnitEvent(29053, 3, 'mob29053_Kill')
RegisterUnitEvent(29053, 4, 'mob29053_Die')
